import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
  plugins: [vue()],
  base:'/',
  resolve:{
    alias:{
      "@":path.resolve('src')
    }
  },
  server:{
    port:8080,
    proxy:{
      "/api":{
        target:'http://chst.vip',
        rewrite:(path)=>path.replace(/^\/api/,'')
      }
    }
  }
})
